#include "flMath.h"

/*
	Change to String a number
*/
string flToString(double value, int precision)
{
	stringstream sstr;
	sstr << fixed << setprecision(precision) << value;
	return sstr.str();
}
string flToString(int value)
{
	stringstream sstr;
	sstr << value;
	return sstr.str();
}

/*
	Radians 2 Degrees
	Degrees 2 Radians
*/
float flRadiansToDegrees(float radians)
{
	return radians * (180 / FL_PI);
}
float flDegreesToRadians(float degrees)
{
	return degrees * (FL_PI / 180);
}